<!--
  @author yangjiangming
  @date 2018/11/26 10:00
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<zmn th:fragment="precisionQuery">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">工单电话：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: inputForConcatPhone"></div>
            </div>
            <label class="layui-form-label">工单号：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: inputForCode"></div>
            </div>
            <label class="layui-form-label">城市：</label>
            <div class="layui-input-inline input-large">
                <div th:replace="common/listQueryItemTmpl :: selectForCityIdList"></div>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">子公司：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForCompanyIdList"></div>
            </div>
            <label class="layui-form-label">执行服务商：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForManageCompanyId"></div>
            </div>
            <label class="layui-form-label">详细地址：</label>
            <div class="layui-input-inline input-large">
                <div th:replace="common/listQueryItemTmpl :: inputForoncatAddress"></div>
            </div>

        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">前后产品：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForProductType"></div>
            </div>
            <label class="layui-form-label">服务分类：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForServCategId"></div>
            </div>
            <div class="display-inline product-select">
                <label class="layui-form-label">一级分类：</label>
                <div class="layui-input-inline">
                    <div th:replace="common/listQueryItemTmpl :: selectForShowCategOneIdList"></div>
                </div>
                <label class="layui-form-label">二级分类：</label>
                <div class="layui-input-inline">
                    <div th:replace="common/listQueryItemTmpl :: selectForShowCategTwoIdList"></div>
                </div>
            </div>
            <div class="display-inline product-select" style="display: none">
                <label class="layui-form-label">一级分类：</label>
                <div class="layui-input-inline">
                    <div th:replace="common/listQueryItemTmpl :: selectForCategOneIdList"></div>
                </div>
                <label class="layui-form-label">二级分类：</label>
                <div class="layui-input-inline">
                    <div th:replace="common/listQueryItemTmpl :: selectForCategTwoIdList"></div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">主工程师：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForMasterId"></div>
            </div>
            <label class="layui-form-label">工单结果：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForWorkResultStatusList"></div>
            </div>
            <label class="layui-form-label">工单状态：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForWorkStatusList"></div>
            </div>
            <div class="layui-input-inline inline-btn">
                <div th:replace="common/listQueryItemTmpl :: buttonForSearch"></div>
                <div th:replace="common/listQueryItemTmpl :: buttonForClean"></div>
                <th:block th:if="${#authPermit.checkPermit('/zs/member/work/export.action')}">
                    <div th:replace="common/listQueryItemTmpl :: buttonForExport"></div>
                </th:block>
            </div>
        </div>
    </div>

    <!-- 下单时间 -->
    <div class="layui-form-item">
        <div class="layui-inline date-picker-item inline-block">
            <label class="layui-form-label">下单时间：</label>
            <div class="layui-input-inline">
                <input class="layui-input" id="receiveTimeStart" th:value="${startTime}" type="text" name="receiveTime.start" autocomplete="off">
            </div>
            <label class="layui-form-label label-center">至</label>
            <div class="layui-input-inline">
                <input class="layui-input" id="receiveTimeEnd" th:value="${endTime}" type="text" name="receiveTime.end" autocomplete="off">
            </div>
        </div>
    </div>

    <!-- 工程师审核 -->
    <div class="layui-form-item">
        <div th:replace="common/listQueryItemTmpl :: masterReviewTime"></div>
    </div>
    <!-- 后台审核 -->
    <div class="layui-form-item">
        <div th:replace="common/listQueryItemTmpl :: platReviewTime"></div>
    </div>
    <!-- 完成时间 -->
    <div class="layui-form-item">
        <div th:replace="~{common/listQueryItemTmpl :: timePicker('完成时间', 'completeTime', false, ${startTime}, ${endTime})}"></div>
    </div>

    <!-- 时间选择框 -->
    <div class="layui-form-item">
        <div class="layui-inline layui-inline-left">
            <label class="layui-form-label"></label>
            <div class="layui-input-inline" style="width: 479px">
                <input type="checkbox" title="下单时间" value="0" lay-skin="primary" lay-filter="datepicker" disabled checked>
                <input type="checkbox" title="完成时间" value="3" lay-skin="primary" lay-filter="datepicker">
            </div>

        </div>
    </div>
</zmn>